using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" DeliveryOrder to change the interface name "IDeliveryOrderServices" in both code and config file together.
    [ServiceContract]
    public interface IDeliveryOrderServices
    {
        [OperationContract]
        List<DeliveryOrderDTO> GetList(int page, out long recordCount, string sortProperty = null,
                                       string sortType = "ASC");

        [OperationContract]
        bool Save(DeliveryOrderDTO DeliveryOrderDTO);

        [OperationContract]
        bool Delete(DeliveryOrderDTO DeliveryOrder);

        [OperationContract]
        List<DeliveryOrderDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                                 out long recordCount);

        [OperationContract]
        List<DeliveryOrderDTO> GetAllDeliveryOrder();

        [OperationContract]
        DeliveryOrderDTO GetDeliveryOrder(string kodeDeliveryOrder);

        [OperationContract]
        List<DeliveryOrderDTO> GetDeliveryOrderList(string kodeDeliveryOrder);

        [OperationContract]
        string GetLastDONo(CostCenterDTO costCenter);


        [OperationContract]
        bool DeleteDetail(DeliveryOrderDetailDTO deliveryOrderDetailDTO);

        [OperationContract]
        bool SendEmail(DeliveryOrderDTO deliveryOrderDto, String DestinationFolder);

        [OperationContract]
        List<DeliveryOrderDTO> GetAllDeliveryOrderByCostCenter(CostCenterDTO costCenter);
    }
}